/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.conformPrinciple.PLK.conf;

import org.springframework.context.annotation.Bean;
import za.ac.cput.conformPrinciple.PLK.BusinessProcess;
import za.ac.cput.conformPrinciple.PLK.Impl.BusinessProcessImp;
import za.ac.cput.conformPrinciple.PLK.Manufacturer;
import za.ac.cput.conformPrinciple.PLK.Manufacturer;
import za.ac.cput.conformPrinciple.PLK.Impl.SupplierImp;

/**
 *
 * @author Oceanwave
 */
public class AppConfig 
{

    @Bean(name = "businessProcess")
    public BusinessProcess getTheProcess() 
    {
        return new BusinessProcessImp();
    }
    
    @Bean(name = "manufacturer")
    public Manufacturer getTheManufacturer() 
    {
        return new Manufacturer("Simmons Plant",26,5,new SupplierImp("Timmy","23 Tomahawk Street",0213746053));
    }
}